import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/documentation/column/getList',
    method: 'post',
    data: query
  })
}

export function fetchColumnAvailableList(query) {
  return request({
    url: '/documentation/column/getAvailable',
    method: 'post',
    data: query
  })
}
export function fetchCatalogue(id) {
  return request({
    url: '/documentation/column/getDetail',
    method: 'post',
    data: { id }
  })
}

export function changeCatalogueStatusByID(pv) {
  return request({
    url: '/documentation/column/change-status',
    method: 'post',
    data: pv
  })
}

export function removeCatalogueByID(pv) {
  return request({
    url: '/documentation/column/delete',
    method: 'post',
    data: pv
  })
}

export function saveCatalogue(data) {
  return request({
    url: '/documentation/column/save',
    method: 'post',
    data: data
  })
}
